/*个人资料提交模块
 * coded: zuoxin
 * date: 2012-4-11*/
$(function(){
	$("#save_button").click(function(){
		var nickname = $("#user_detail_form #nickname").val();	//昵称
		var realname = $("#user_detail_form #realname").val();	//真名
		var sex = $("#user_detail_form input:checked").val();	//性别
		var year = $("#user_detail_form select:eq(0) option:selected").val();	//年
		var month = $("#user_detail_form select:eq(1) option:selected").val();	//月
		var day = $("#user_detail_form select:eq(2) option:selected").val();	//日
		var dept = $("#user_detail_form select:eq(3) option:selected").val();  //学院
		var qq = $("#user_detail_form #QQ").val();
		var mydesc = $("#user_detail_form #mydesc").val();
		$.ajax({
			type: "POST",
			url: "php_ajax/keep_info.php",
			dataType: "html",
			cache: false,
			data: {u_nickname: nickname, u_realname: realname, u_sex: sex, u_year: year, u_month: month, u_day: day, u_dept: dept, u_qq: qq, u_mydesc: mydesc},
			success: function(){
				alert("success");
			}
		});
	});
	
});